import os
import pdb

if os.getenv("GITHUB_ACTIONS") or os.getenv("ENABLE_COREDUMPY"):
    try:
        import coredumpy
        coredumpy.patch_unittest(directory=os.getenv("COREDUMPY_DUMP_DIR", "./"))
    except ImportError:
        pass